﻿<%@ Page Title="Education" Language="C#" MasterPageFile="~/Views/Shared/HomeSite.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<TimeTableManagement.Entities.Tb_Education>>" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxRoundPanel" TagPrefix="dx" %>

<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <dx:ASPxRoundPanel ID="ASPxRoundPanel1" runat="server" Width="100%" 
        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
        GroupBoxCaptionOffsetY="-28px" HeaderText="List All Education Program"
        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
        <ContentPaddings Padding="14px" />
        <PanelCollection>
        <dx:PanelContent ID="PanelContent1" runat="server" SupportsDisabledAttribute="True">
<table style="width:100%" id="t1" class="example table-autosort
 table-autofilter table-autopage:10 
 table-stripeclass:alternate 
 table-page-number:t1page table-page-count:t1pages 
 table-filtered-rowcount:t1filtercount 
 table-rowcount:t1allcount">
    <thead>
    <tr>
        <th class="tablecell">
            Code
        </th>
        <th class="tablecell">
            Name
        </th>
        <th class="tablecell">
            Credit
        </th>
        <th class="tablecell">
            Term
        </th>
        <th class="tablecell">
            Department
        </th>
        <th class="tablecell"></th>
    </tr>
    </thead>
    <tbody>
<% foreach (var item in Model)
   { %>
        <td>
            <%: Html.DisplayFor(modelItem => item.code) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.name) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.maxcredit) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.countterm)%>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.Tb_Department.code) %>
        </td>
        <td>
            <a href="/Education/Copy/<%: item.id %>"><img title="Copy" src="../../Content/images/copy.png" /></a>
            <a href="/Education/Details/<%: item.id %>"><img title="Details" src="../../Content/images/details.png" /></a>
            <a href="/Education/Edit/<%: item.id %>"><img title="Edit" src="../../Content/images/edit.png" /></a>
            <a href="/Education/Delete/<%: item.id %>"><img title="Delete" src="../../Content/images/delete.png" /></a>
        </td>
    </tr>
<% } %>
  </tbody>
  <tfoot>
	<tr>
		<td class="table-page:previous" style="cursor:pointer; text-align:right"><img src="../../Content/iconprevious.png" /></td>
		<td style="text-align:center" colspan="4" class="table-page-number:t1page">Page <span id="t1page"></span>&nbsp;of&nbsp;<span id="t1pages"></span></td>
        <td class="table-page:next" style="cursor:pointer; text-align:left"> <img src="../../Content/iconnext.png" /></td>
	</tr>
    </tfoot>
</table>
</dx:PanelContent>
</PanelCollection>
    </dx:ASPxRoundPanel>

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="leftmenu" runat="server">
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="menuright" runat="server">
</asp:Content>

<asp:Content ID="Content5" ContentPlaceHolderID="Footer" runat="server">
</asp:Content>
